package com.wh.order.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import com.wh.order.pojo.OrderDetail;
import com.wh.order.pojo.OrderProducid;
import com.wh.order.pojo.OrderReviewer;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.naming.Name;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * @Desc
 * @Author ssl
 * @Date 2024/5/26 14:17
 **/
@Data
@Accessors(chain = true)
public class OrderExportVo implements IExcelDataModel, IExcelModel {
    @Excel(name = "订单编号",width = 20)
    private String orderSn;
    @Excel(name = "下单人",width = 15)
    private String adminName;
    @Excel(name = "客户姓名",width = 15)
    private String customerName;
    @Excel(name = "订单金额",width = 15,suffix = "元")
    private Double orderAmount;
    @Excel(name = "支付方式",width = 15)
    private String payType;
    @Excel(name = "订单状态",width = 15)
    private String orderStatus;
    @Excel(name = "创建时间",width = 25, format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @Excel(name = "发货方式",width = 15)
    private String logisticsMethods;
    @Excel(name = "物流公司",width = 15)
    private String logisticsCompanies;

    @Excel(name = "物流单号",width = 15)
    private String trackingNumber;
    @Excel(name = "最后处理时间",width = 25,format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastOperationTime;
    @Excel(name = "收件人姓名",width = 15)
    private String name;
    @Excel(name = "收件人电话",width = 15)
    private String phone;
    @Excel(name = "收件人所属省",width = 15)
    private String province;
    @Excel(name = "收件所属市",width = 15)
    private String city;
    @Excel(name = "收件人所属区",width = 15)
    private String district;
    @Excel(name = "收件详细地",width = 20)
    private String detailAddress;
    @Excel(name = "订单备注",width = 20)
    private String notes;

    @ExcelCollection(name = "产品信息")
    private List<OrderProducid> orderProducids;

    private String errorMsg;
    private int rowNum;

    @Override
    public Integer getRowNum() {
        return null;
    }

    @Override
    public void setRowNum(Integer integer) {

    }
    @Override
    public void setErrorMsg(String s) {
    this.errorMsg=s;
    }
}
